package lesson.c4;

public class MainClass {
	
	private String _classname = "";
	
	private int _timestamp = 0;
	
	public MainClass(String classname, int timestamp){
		_classname = classname;
		_timestamp = timestamp;
	}
	
	public void setScore( String student_name, int score){
		DataStore.getInstance().set(_classname+_timestamp+student_name, String.valueOf(score));
	}
	
	public int getScore( String student_name){
		String key = _classname+_timestamp+student_name;
		return Integer.valueOf(DataStore.getInstance().get(key)).intValue();
	}

}
